﻿using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace BDS3M
{
    public partial class Index : System.Web.UI.Page
    {
        public string catid;
        public static string name;
        public string[] css = new string[6]; 
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request.QueryString["IDLoai"] != null)
            {
                int idloai = Convert.ToInt32(Request.QueryString["IDLoai"].ToString());
                css[1] = "";
                css[2] = "";
                css[3] = "";
                css[4] = "";
                css[5] = "";
                css[idloai] = "tabs-selected";
            }
            else
            {
                css[1] = "tabs-selected";
                css[2] = "";
                css[3] = "";
                css[4] = "";
                css[5] = "";
            }
            Session["DuongDan"] = Request.RawUrl;
            if (Session["handbook"] == null)
                Session["handbook"] = "";

            if (Request.QueryString["ID"] != null)
            {
                catid = Request.QueryString["ID"].ToString();

                name = DAL.DCollector.DBCollector.Instance.StoredSelectAllTableWhereID("tbl_Category", "Category_ID1", catid.ToString()).Rows[0]["Category_Name"].ToString();
            }
            else
            {
                catid = "";
                name = "sàn giao dịch";
            }
        }
    }
}